package com.kcnet.qk.controller.addfriend;

import android.view.accessibility.AccessibilityEvent;

import com.kcnet.qk.constant.Const;
import com.kcnet.qk.controller.BasePeopleController;
import com.kcnet.qk.service.AutoAddPeopleService;
import com.kcnet.qk.util.PreferenceHelper;

import org.greenrobot.eventbus.EventBus;

/**
 * Created by Administrator on 2018/4/25 0025.
 * 添加主页好友
 */

public class AddFriendHomeCTR extends BasePeopleController {


    private static String TAG = "AddFriendHomeCTR";
    private static AddFriendHomeCTR mRongCloudInstance;


    /**
     * 获取RongCloud 实例。
     *
     * @return RongCloud。
     */
    public static AddFriendHomeCTR getInstance() {
        if (mRongCloudInstance == null) {
            synchronized (AddFriendHomeCTR.class) {

                if (mRongCloudInstance == null) {
                    mRongCloudInstance = new AddFriendHomeCTR();
                }
            }
        }

        return mRongCloudInstance;
    }


    @Override
    public void doTask(AccessibilityEvent event) {

    }

    public void setParms(int maxAddCount,int minAddTime,int maxAddTime){
      //  stopTask();
        EventBus.getDefault().post(new Boolean(true));
        PreferenceHelper.putBoolean(Const.PREF_KEY_STOP_AUTO_FLAG, true);
        this.maxAddCount = maxAddCount;
        this.minAddTime = minAddTime;
        this.maxAddTime = maxAddTime;
        this.currentAddCount = 0;
    }


}
